package com.macro.mall.tiny.service;

import com.macro.mall.tiny.mbg.model.PmsBrand;

import java.util.List;

public interface PmsBrandService {
    /**
     * 查询所有信息(不分页)
     * @return
     */
    List<PmsBrand> listAllBrand();

    /**
     * 添加
     * @param brand
     * @return
     */
    int createBrand(PmsBrand brand);

    int updateBrand(Long id, PmsBrand brand);

    int deleteBrand(Long id);

    /**
     * 分页查询
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<PmsBrand> listBrand(int pageNum, int pageSize);

    PmsBrand getBrand(Long id);
}
